package com.zpark.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author xiaoyu
 * @version 1.0 2022/10/8
 */

public class MyFilter02 implements Filter{
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.err.println("MyFilter02正在执行");
        chain.doFilter(request, response);
    }

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.err.println("MyFilter02请求经过过滤器");

    }

    @Override
    public void destroy() {
        System.err.println("过滤器销毁");
    }
}
